package com.vnp.vchat.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class ObjContact extends ObjKhachhang{
	String id;
	String name;
	String phone;
	String type;
	String email;
	int  type_check=0; //0 = ko click , 1= click
	@Override
	public String getEmail() {
		return email;
	}

	@Override
	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getPhone() {
		return phone;
	}

	@Override
	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	
	public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        try {
//            obj.put("id", id);
//            obj.put("name", name);
            obj.put("phone", phone);
//            obj.put("type", type);
        } catch (JSONException e) {
        	e.printStackTrace();
        }
        return obj;
    }

	
	public int getCheck(){
		return type_check;
	}
	
	public void setCheck(){
		if(type_check==0)
		this.type_check=1;
		else this.type_check=0;
	}
	
//	public boolean isCheck() {
//		return check;
//	}
//
//	public void setCheck() {
//		this.check = !check;
//	}
	
}
